package com.bjqh.edu.UI.Fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;


import com.bjqh.edu.R;
import com.bjqh.edu.adapter.CoursePurchaseAdapter;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.Unbinder;

/**
 * Created by Administrator on 2017/9/15.
 */

public class ThreeDayFragment extends Fragment {
    @BindView(R.id.rec_gh)
    ListView recGh;
    Unbinder unbinder;
    private CoursePurchaseAdapter adapter;
    private List<String> list;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_three_day, null);
        ButterKnife.bind(this, view);
        list = new ArrayList<String>();
        list.add("1");
        list.add("1");
        list.add("1");
        //添加适配器
       /* adapter = new CoursePurchaseAdapter(getContext(), list);
        recGh.setAdapter(adapter);*/
        unbinder = ButterKnife.bind(this, view);
        return view;
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        unbinder.unbind();
    }
}
